package com.tiany.tiange_study.util;

import android.content.Context;
import android.widget.Toast;
//Toast工具类，功能为修改Toast显示内容
public class ToastUtil {
    public static Toast mToast;
    public static void showMsg(Context context,String msg){
        if (mToast ==null){
            mToast=Toast.makeText(context,msg,Toast.LENGTH_SHORT);
        }else {
            mToast.setText(msg);
        }
        mToast.show();
    }
}
